<php>if($listData){</php>
<ul class="learningList" id="resource_list{$d.id}">
<foreach name='listData' item='data'>
  <li> 
    <div class='pic'>
      <a href="{:U('public/Resources/view',array('id'=>$data['id']))}">
        <img src="{$data.img_url}" />
      </a>
    </div>
    <div style='margin-top:15px;margin-left:10px;'>
      <a href="{:U('public/Resources/view',array('id'=>$data['id']))}" style='font-size:16px;' >《{$data.resource_name}》
      </a>
    </div>
    <div class='txt' style='margin-top:15px;margin-left:10px;font-size:14px;'>
      <span>{$data['ctime']|date='Y/m/d',###}</span>
      <if condition="$data['category'] eq 1">文档资源<else/>视频资源</if>
    </div>
    <div class='stu' style='margin-top:15px;'>
      <span></span>{$data.learn_sum}人已学
    </div>
  </li>
  <ul class="learningList" id="resource_list{$d.id}">
</foreach>
<php>}else{</php>
<span>暂无资源</span>
<php>}</php>
